import { fetchProductionPlanList } from '@/redux/actions/Slaughter';
import { selectProductionPlanList } from '@/redux/selectors';
import { connect } from 'react-redux';

import ProductionPlan from './ProductionPlan';

const mapStateToProps = state => ({
  productionPlanList: selectProductionPlanList(state),
});

const mapDispatchToProps = {
  fetchProductionPlanList,
};

export default connect(mapStateToProps, mapDispatchToProps)(ProductionPlan);
